package com.newdjk.newdoctor.adapter;

import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.newdjk.newdoctor.R;
import com.newdjk.newdoctor.utils.GlideUtils;
import com.newdjk.okhttp.entity.OrderListEntity;
import com.newdjk.okhttp.entity.ShopListEntity;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class ShopListAdapter extends BaseQuickAdapter<ShopListEntity.ReturnDataBean, BaseViewHolder> {

    List<ShopListEntity.ReturnDataBean> mPaintList;

    public ShopListAdapter(@Nullable List<ShopListEntity.ReturnDataBean> data) {
        super(R.layout.shop_item_list, data);
        mPaintList = data;
    }

    @Override
    protected void convert(@NotNull BaseViewHolder helper, ShopListEntity.ReturnDataBean returnDataBean) {

        helper.setText(R.id.shop_name,returnDataBean.getMedicationCompanyName()+"");
        helper.setText(R.id.shop_address,TextUtils.isEmpty(returnDataBean.getAddress())?"暂无地址信息":returnDataBean.getAddress());


    }



}